/**
 * BIM资料管理
 */
import request from '@/utils/request'
import { unionApiUrl } from '../config'
const PREFIX = unionApiUrl + '/bimAwardLedger/'
const PREFIXTWO = unionApiUrl + '/bimResult/'

/**
 * @description 获取BIM获奖台账列表
 */
 export function getPageBimAwardLedger(data) {
  return request({
    url: `${PREFIX}getPageBimAwardLedger`,
    method: 'post',
    data
  })
}

/**
 * @description 添加BIM获奖台账
 */
 export function insertBimAwardLedger(data) {
  return request({
    url: `${PREFIX}insertSelective`,
    method: 'post',
    data
  })
}

/**
 * @description 批量添加BIM获奖台账
 */
 export function insertBimAwardLedgerBatch(data) {
  return request({
    url: `${PREFIX}insertSelectiveBatch`,
    method: 'post',
    data
  })
}

/**
 * @description 修改BIM获奖台账 
 */
 export function updateBimAwardLedger(data) {
  return request({
    url: `${PREFIX}updateByPrimaryKeySelective`,
    method: 'post',
    data
  })
}

/**
 * @description 获取BIM获奖台账信息 
 */
 export function getBimAwardLedgerById(params) {
  return request({
    url: `${PREFIX}getBimAwardLedgerById`,
    method: 'get',
    params
  })
}

/**
 * @description 删除BIM获奖台账 
 */
 export function deleteBimAwardLedger(params) {
  return request({
    url: `${PREFIX}deleteByPrimaryKey`,
    method: 'post',
    params
  })
}

/**
 * @description BIM获奖台账统计 
 */
 export function listTotal(data) {
  return request({
    url: `${PREFIX}listTotal`,
    method: 'post',
    data
  })
}

/**
 * @description 获取BIM成果列表
 */
 export function getPageBimResult(data) {
  return request({
    url: `${PREFIXTWO}getPageBimResult`,
    method: 'post',
    data
  })
}

/**
 * @description 批量添加BIM成果列表
 */
 export function insertBimResultBatch(data) {
  return request({
    url: `${PREFIXTWO}insertSelectiveBatch`,
    method: 'post',
    data
  })
}

/**
 * @description 添加BIM成果列表
 */
 export function insertBimResult(data) {
  return request({
    url: `${PREFIXTWO}insertSelective`,
    method: 'post',
    data
  })
}

/**
 * @description 修改BIM成果列表
 */
 export function updateBimResult(data) {
  return request({
    url: `${PREFIXTWO}updateByPrimaryKeySelective`,
    method: 'post',
    data
  })
}

/**
 * @description 获取BIM成果列表信息 
 */
 export function getBimResultById(params) {
  return request({
    url: `${PREFIXTWO}getBimResultById`,
    method: 'get',
    params
  })
}

/**
 * @description 删除BIM成果列表 
 */
 export function deleteBimResult(params) {
  return request({
    url: `${PREFIXTWO}deleteByPrimaryKey`,
    method: 'post',
    params
  })
}

/**
 * @description BIM成果列表统计 
 */
 export function bimResultSummary(data) {
  return request({
    url: `${PREFIXTWO}listTotal`,
    method: 'post',
    data
  })
}